package com.gitee.liuzhi.framework.starter.response.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * Created by 2022/4/24/0024
 *
 * @author LiuZhi
 * @version V1.0
 * @description: 响应结果枚举
 */
@Getter
@AllArgsConstructor
public enum DataResultEnum {

    /** 访问成功 */
    INVOKE_SUCCESS("SYS_0000", "访问成功"),
    NOT_FOUND("SYS_0001", "资源不存在"),
    INVOKE_FAILURE("SYS_0002", "访问失败"),
    VALID_ERROR("SYS_0003", "参数验证异常"),
    PARAM_MISS("SYS_0004", "参数缺失"),
    INVALID_PARAMETER("SYS_0005", "参数错误"),
    FILE_ERROR("SYS_0006","文件操作异常"),
    UN_KNOW_ERROR("SYS_9999", "系统未知错误"),
    BUSINESS_ERROR("BUSINESS_ERROR", "访问失败");

    private final String code;

    private final String message;

}
